package cn.tedu.forum.pojo.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
public class UserInfoStandardVO implements Serializable {
    @ApiModelProperty(value = "用户编号", position = 1)
    private Long id; // 用户编号

    @ApiModelProperty(value = "用户名", position = 2)
    private String username; // 用户名

    @ApiModelProperty(value = "昵称", position = 3)
    private String nickname; // 昵称

    @ApiModelProperty(value = "密码", position = 4)
    private String password; // 密码（密文）

    @ApiModelProperty(value = "电话号码", position = 5)
    private String phoneNumber; // 电话号码

    @ApiModelProperty(value = "邮箱", position = 6)
    private String emailAddress; // 邮箱

    @ApiModelProperty(value = "个人简介", position = 7)
    private String profile; // 个人简介

    @ApiModelProperty(value = "头像图片的地址", position = 8)
    private String avatarUrl; // 头像图片的地址

    @ApiModelProperty(value = "性别", position = 9)
    private Integer gender; // 性别（0=保密，1=男性，2=女性）

    @ApiModelProperty(value = "出生日期", position = 10)
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private LocalDateTime dayOfBirth; // 出生日期

    @ApiModelProperty(value = "所在地", position = 11)
    private String location; // 所在地

    @ApiModelProperty(value = "账户余额", position = 12)
    private BigDecimal balance; // 账户余额
}
